package com.magnificent.atlantis.client.data.message.messages;

import com.magnificent.atlantis.client.data.configuration.ServerConfiguration;
import com.magnificent.atlantis.common.entity.messages.ServerCancelMeetingMessage;
import com.magnificent.atlantis.common.entity.messages.ServerMessage;

/**
 * User: Babanin
 * Date: 05.05.2009
 * Time: 1:06:48
 */
public class ClientCancelMeetingMessage extends ClientMeetingMessage {
    public ClientCancelMeetingMessage() {
    }

    public ClientCancelMeetingMessage(ServerCancelMeetingMessage serverCancelEventMessage, ServerConfiguration configuration) {
        super(serverCancelEventMessage, configuration);
    }

    public String getTitle() {
        return "Cancel participation in meeting \"" + meetingTitle + "\"";
    }

    public ServerMessage toServerMessage() {
        ServerCancelMeetingMessage serverCancelEventMessage = new ServerCancelMeetingMessage();
        super.copyDataTo(serverCancelEventMessage);
        return serverCancelEventMessage;
    }
}
